package com.vehicle.mapper;

import com.vehicle.pojo.AccidentRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccidentRecordMapper {
    //分页带搜索
    public List<AccidentRecord> selectAccidentRecord(AccidentRecord accidentRecord);
    //根据id删除 弃用 改用假删
    @Deprecated
    public void deleteAccidentRecordByid(@Param("accidentid") int accidentid);

    public void updateStatusByAccidentId(@Param("accidentid") int accidentid);

    //增加事故记录
    public void addAccidentRecord(AccidentRecord accidentRecord);
    //修改事故记录
    public void updateAccidentRecord(AccidentRecord accidentRecord);
}
